import axios from 'axios';
import { WEATHER } from '../keys';
// 天气
// 请求示例：http://apis.juhe.cn/simpleWeather/query?city=%E8%8B%8F%E5%B7%9E&key=

function getWeather(city) {
  return axios.get('/api/simpleWeather/query', {
    params: {
      city,
      key: WEATHER
    }
  });
}

export { getWeather };
